Fix horizontal off-by-one error
authorJonas Bernoulli <jonas@bernoul.li>
Thu, 4 Aug 2022 12:05:09 +0000 (14:05 +0200)
committerJonas Bernoulli <jonas@bernoul.li>
Thu, 4 Aug 2022 12:05:09 +0000 (14:05 +0200)
commit5fe2d3317d60411970e662d62ffc05fe5eac7319
treee9b0ec7261585194e5f3aa140dd8247d8df29fde
parent254d6fdc2b3c993b599fc3ca29cda14bc6c0a5fb
Fix horizontal off-by-one error

Delay increasing width used by columns until we know that we have to
do so because we have determined that there is enough room to add an
additional column and a space between the last two columns.

If we don't do that, then we can easily get an off-by-one error.  If
docstrings are shown and the window is narrow, then it is likely that
we end up using the maximal width.  If we then add one to the actual
width and later compare that again with the maximal width, then that
is too width.
which-key.el